

#ifndef SAR_KERNEL_ERROR_ERROR_H
#define SAR_KERNEL_ERROR_ERROR_H

int error_get ();
void error_set (int _err);
const char *error_tostring (int _err);
int error_log (int _err);

#define ERROR_OK 0
#define ERROR_NOERROR	1 	/* no description available */
#define ERROR_NOBLOCK	2	/* out of memory blocks */
#define ERROR_NOHANDLE	3	/* out of handles */
#define ERROR_NOUSERID	4	/* out of userids */
#define ERROR_LOCKED	5	/* a resource was locked */
#define ERROR_DENIED	6	/* denied permission to a resource */
#define ERROR_FULL	7	/* a resource has been maxed out */
#define ERROR_END	8	/* end reached before expected */

#endif
